package com.woniuxy.dao;

import com.woniuxy.pojo.SysPermission;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysPermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

    public List<SysPermission> getAllMenus();

    public List<SysPermission> getMenusByUserId(Integer uid);
    public List<String> getPermissionByUserId(Integer uid);
}